﻿using AutoMapper;
using Partner.Surround.Base.DataDictionaries;
using Partner.Surround.Base.DataDictionaries.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Partner.Surround.DtoMappers
{
    /// <summary>
    /// 资源管理映射
    /// </summary>
    internal static class BaseDtoMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            #region 数据字典
            configuration.CreateMap<DataDictionary, DataDictionaryListDto>();
            configuration.CreateMap<DataDictionary, DataDictionaryEditDto>().ReverseMap();
            configuration.CreateMap<DataDictionaryItem, DataDictionaryItemListDto>();
            configuration.CreateMap<DataDictionaryItem, DataDictionaryItemEditDto>().ReverseMap();
            #endregion
        }
    }
}
